<template>
  <div class="address">
 <van-index-bar>
  <van-index-anchor index="A" />
  <van-cell title="文本" />
  <van-cell title="文本" />
  <van-cell title="文本" />

  <van-index-anchor index="B" />
  <van-cell title="文本" />
  <van-cell title="文本" />
  <van-cell title="文本" />

  ...
</van-index-bar>
   
  </div>
</template>
<script>
import {sortCity} from "@/api/index"
export default {
  // name:'address',
  data() {
    return {
      cityList:[]
    };
  },

  methods:{
   async sortCity(){
     const res=await sortCity()
     this.cityList=res.data.data
     console.log(this.cityList);
   }
  },
  created(){
    this.sortCity()
  },
  
};
</script>
<style lang="scss" scoped></style>
